package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TReport;
import com.bootdo.project.dao.TReportMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TReportService {

	@Autowired
    private TReportMapper tReportMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tReportMapper.deleteByPrimaryKey(id);
    }

    public int insert(TReport record){
        return tReportMapper.insert(record);
    }

    public int insertSelective(TReport record){
        return tReportMapper.insertSelective(record);
    }

    public TReport selectByPrimaryKey(Long id){
        return tReportMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TReport record){
        return tReportMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TReport record){
        return tReportMapper.updateByPrimaryKey(record);
    }

    public List<TReport> selectByCondition(TReport record){
        return tReportMapper.selectByCondition(record);
    }

    public List<TReport> selectAll(){
        return tReportMapper.selectAll();
    }

    public List<TReport> selectByPage(Page<TReport> page){
        return tReportMapper.selectByPage(page);
    }

    public Integer count(TReport record){
        return tReportMapper.count(record);
    }

    public int deleteByCondition(TReport record){
        return tReportMapper.deleteByCondition(record);
    }

}
